package com.jvyou.mybatis.builder.config;

import java.util.Properties;

/**
 * 配置基类
 */
public class BaseConfig {
    private final Properties properties = new Properties();


    /**
     * 添加配置
     *
     * @param key   配置key
     * @param value 配置值
     */
    public void putProperty(String key, String value) {
        properties.put(key, value);
    }


    /**
     * 获取配置
     *
     * @param key 配置key
     * @return 配置值
     */
    public String getProperty(String key) {
        return properties.getProperty(key);
    }

    public Properties getProperties() {
        return this.properties;
    }

    public void setProperties(Properties properties) {
        this.properties.putAll(properties);
    }

}